package com.kancy.drools.demo.declareclass;

import com.kancy.drools.demo.BaseTests;
import org.junit.Test;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;

/**
 * @author kancy
 * @date 2020/1/19 11:21
 **/
public class DeclareClassTests extends BaseTests {
    @Test
    public void test(){
        KieContainer kieContainer = getKieContainer();
        KieSession kieSession = kieContainer.newKieSession("xxxx-session");
        kieSession.fireAllRules();
        kieSession.dispose();
    }
}
